<?php /* Smarty version 2.6.18, created on 2009-05-06 14:40:14
         compiled from room/favor.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'room/favor.html', 74, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>商务室 - <?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_tpl_vars['INC_PATH']; ?>
css/room.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<?php echo $this->_tpl_vars['INC_PATH']; ?>
js/prototype.js"></script>
<script>
function test(){
var form = $('listfrm') ;
var t = form.getInputs("checkbox");
var chked = 0;
for (i=0; i<t.length; i++)
{
	if($(t[i]).checked)
	chked++;
}
if(chked<=0){
	alert("您没有选中任何信息");
	return false;
}else{
	return true;
}
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/element.top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" align="center" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/left_bg.gif"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
    <td width="590"><table  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/banr_pic.gif" width=570 height=101 alt=""></td>
      </tr>
    </table>
      <table width="95%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="45" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td>&nbsp;</td>
                <td class="font14b_org"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/icon_newd.gif" width="15" height="16">我的信息收藏夹 </td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td height="5" valign="top" class="bggray2"></td>
        </tr>
      </table>
      <table width="95%" border="0" cellpadding="2" cellspacing="0" class="bggray">
        <tr>
          <td height="35" class="orange">（<span class="gray">提示：</span>你可以删除已有的信息再重新收藏）</td>
        </tr>
      </table>      
      <br>
      <form name="listfrm" action="<?php echo $_SERVER['PHP_SELF']; ?>
" method="post" onSubmit="return test();">
      <table width="95%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="100%" border="0" cellpadding="5" cellspacing="1" class="bglist">
            <tr align="center">
              <td><strong>类 型</strong></td>
              <td><strong>标题</strong></td>
              <td><strong>收藏时间</strong></td>
              <td><strong>删 除</strong></td>
            </tr>
			<?php $_from = $this->_tpl_vars['favorlists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['favorite'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['favorite']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['favorite']['iteration']++;
?>
            <tr align="center" class="bgwhite">
              <td class="orange"><?php echo $this->_tpl_vars['TradeTypes'][$this->_tpl_vars['item']['TradeType']]; ?>
</td>
              <td><a href="../offer/detail.php?id=<?php echo $this->_tpl_vars['item']['TradeId']; ?>
" target="_blank"><?php echo $this->_tpl_vars['item']['Title']; ?>
</a>&nbsp;</td>
              <td><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['CreateDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
&nbsp;</td>
              <td><input name="fid[]" type="checkbox" id="fid[]" value="<?php echo $this->_tpl_vars['item']['FavorId']; ?>
"></td>
            </tr>
			<?php endforeach; endif; unset($_from); ?>
          </table></td>
        </tr>
		<?php if ($this->_tpl_vars['favorlists']): ?>
        <tr>
          <td><div align="right">
                <input type="submit" name="del" value="删除选中的信息" onClick="return window.confirm('真的要删除这些信息吗？')">
              </div></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="1" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/index_trade_line.gif"></td>
        </tr>
		<?php else: ?>
        <tr align="center">
          <td><B>当前没有任何收藏信息</B>&nbsp;</td>
        </tr>
		<?php endif; ?>
        <tr>
          <td><table align="center" width="100%" class="zi">
              <tr>
                <td align="center">&nbsp;<?php echo $this->_tpl_vars['ByPages']; ?>
</td>
                </tr>
          </table></td>
        </tr>
      </table>
      </form>
      <br>
      <br></td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</center>
 </html>
